package com.szrt.java.day20161229.demo05;

public class DataType {

	private boolean isMarry;
	private char    gender;
	private byte    data;
	private short   matter;
	private int     age;
	private long    second;
	private float   price;
	private double  salary;
	private String  str;
	

	public DataType(){
		System.out.println("调用了构造函数！");
	}
	
	public boolean getIsMarry() {
		return isMarry;
	}
	public void setIsMarry(boolean isMarry) {
		this.isMarry = isMarry;
	}
	
	public char getGender() {
		return gender;
	}
	public void setGender(char gender) {
		this.gender = gender;
	}
	
	public byte getData() {
		return data;
	}
	public void setData(byte data) {
		this.data = data;
	}
	
	public short getMatter() {
		return matter;
	}
	public void setMatter(short matter) {
		this.matter = matter;
	}
	
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	
	public long getSecond() {
		return second;
	}
	public void setSecond(long second) {
		this.second = second;
	}
	
	public float getPrice() {
		return price;
	}
	public void setPrice(float price) {
		this.price = price;
	}
	
	public double getSalary() {
		return salary;
	}
	public void setSalary(double salary) {
		this.salary = salary;
	}
	
	public String getStr() {
		return str;
	}

	public void setStr(String str) {
		this.str = str;
	}
	
	public static void main(String[] args) {
		
		DataType dt = new DataType();
		
		System.out.println("Boolean的默认值为："+dt.getIsMarry());
		System.out.println("Char的默认值为："+dt.getGender());
		System.out.println("Byte的默认值为："+dt.getData());
		System.out.println("Short的默认值为："+dt.getMatter());
		System.out.println("Interge的默认值为："+dt.getAge());
		System.out.println("Long的默认值为："+dt.getSecond());
		System.out.println("Float的默认值为："+dt.getPrice());
		System.out.println("Double的默认值为："+dt.getSalary());
		System.out.println("String的默认值为："+dt.getStr());
		
	}
	
}
